.demo2-box {
    width: 600px;
    height: 800px;

    .box {
        color: white;
        position: relative;
        top: 60px;
        width: 180px;
        height: 250px;
        background-color: black;
        border-radius: 20px;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;

        h2 {
            font-size: 36px;
            text-shadow: 1px 3px 5px chartreuse;
            z-index: 99;
        }
    }

    .box::before {
        content: '';
        position: absolute;
        top: -20px;
        left: 30px;
        width: 120px;
        height: 120%;
        background: linear-gradient(rgb(26, 135, 238), rgb(34, 228, 60));
        animation: rts 4s linear infinite;
    }

    .box::after {
        content: '';
        position: absolute;
        width: 95%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        height: 95%;
        background-color: rgb(5, 18, 31);
        border-radius: 20px;

    }
}

@keyframes rts {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}